<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("offer:offer:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("offer:offer:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("offer:offer:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">上游对应的渠道id 默认89</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.dspChannelId" placeholder="上游对应的渠道id 默认89"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.sspChannelId" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上游offerid</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.dspOfferId" placeholder="上游offerid"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下游offerid</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.sspOfferId" placeholder="下游offerid"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">物料名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.name" placeholder="物料名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">状态 active</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.status" placeholder="状态 active"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">广告类型</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.category" placeholder="广告类型"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">否手头可以手动进行投放 默认1</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerApproval" placeholder="否手头可以手动进行投放 默认1"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerApprovalMsg" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">追踪url</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.trackingLink" placeholder="追踪url"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">投放结束时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.endDate" placeholder="投放结束时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">广告结算类型CPA · CPC · CPS · CPA+CPS</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.pricingType" placeholder="广告结算类型CPA · CPC · CPS · CPA+CPS"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">成交价格</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.payout" placeholder="成交价格"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付百分比</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.percentPayout" placeholder="支付百分比"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.currency" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">推广网址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.previewUrl" placeholder="推广网址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">转换跟踪方法用于报价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.conversionProtoco" placeholder="转换跟踪方法用于报价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.conversionProtocolMsg" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">提供的链接地址的缩略图</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.thumbnail" placeholder="提供的链接地址的缩略图"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">具体投放的地区 直接存json就行了</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerGeo" placeholder="具体投放的地区 直接存json就行了"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerVbt" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">具体结算的类型 直接存json就行了</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerEvent" placeholder="具体结算的类型 直接存json就行了"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerPostback" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">具体投放平台 直接存json</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerPlatform" placeholder="具体投放平台 直接存json"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerCreative" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">预算上限  直接存json</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.offerCap" placeholder="预算上限  直接存json"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.createTime" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="offer.updateTime" placeholder=""/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/offer/offer.js?_${.now?long}"></script>
</body>
</html>